Store max image size in a variable.