Add mini_magick support for thumbnails