adds an image to a post