resize to scale using mini magick and image magick