If an image has a region, the following commands act on the region, not on the whole image. To determine whether an image has a region, use the HasRegion property in the RasterImage command. To remove an image region so that these commands act on the whole image, use the MakeRegionEmpy() method of the RasterImage command.