add thumbnails and medium images using rmagick gem