add carrierwave, use Rmagick to create thumbnails and resize photo