add function to remove 'p' tags from images to prevent breaks