added image attachment to posts