uncommented image size checking