add image attachment to posts