added paperclip but finding fatal bug in image upload