fixing the problem of images in post adding the validates_attachment_content_type paperclip definition in post model