Adding image attachment to posts