Is my best friend's boyfriend flirting with me?

So he and I were texting talki g about hair and he sent me a picture of the hairstyle he was gonna get

Then he said "imma look sexy ain't I" and I didn't reply back because I didn't know what to say.
When he and my friend first started dating he tried to have sex w me but that was a year ago, I didn't tell my friend because I didn't want to ruin what they had just started. I blew him off of course, I thought him liking me was over and even if he they did break up why would I date my best friends ex boyfriend? They have been going out for a year and some months.. What should I say to him?
Is my best friend's boyfriend flirting with me?
Post Opinion