Lock an image to the original size

The Lock at Original Size property is set to False (unchecked) by default. With this set to False, the image dimensions can be modified by either of the following two methods.