Is it inappropriate? Definitely! Should he have known better? Yes he should have and should have kept it appropriate. Should he be fired? I don't know. I've never been anyone's boss so I don't know what the policy is for that.
I'm sending that picture to my boyfriend. That joke is hilarious!