implementing paperclip gem and image upload function