working version with image upload using Paperclip Gem and MagickImage