Protests were held after a cartoon of the founder of Islam was shown in class at Batley Grammar.