Adapted size validation to mini_magick