This is not really a fair comparison. It would be more like posting a picture during the Xmas holidays of doing something sinful/forbidden by Christianity with the baby Jesus. The context of this being during Ramadan is extremely important, as it's the holiest time of the year for Muslims.
I'm a former Muslim. I'm not offended by the OP's action, I just think it's a dumb joke that shows a lack of sensibility and respect.
The key is, in the West, if you did what I described above, you would probably receive a lot of flack, but you definitely wouldn't go to jail!