Ensure max image dimensions are always checked