added paperclip and connected images to posts in db