It isn't all about the pictures. The main goal for the terrorists is to divide muslims and non-muslims in Europe so the muslims will feel more alienated here and are attracted to the fight in Syria and Iraq. More people for them to fight the jihad.   

(Spread hatred and create a following, like /u/slonghair_dontcare below says.)