changed Post model and controller for paperclip try 1