added mini_magick for automatic image resizing