While Stephen Gray's reposting of an image on social media about Islam may have been 'uncouth, coarse, not nuanced', he was entitled to make the post as a political expression, a court heard.