add image magick and resize thumbnails