Fixed bug with pictures in posts_controller