Set minimum and maximum image dimensions