input image pixel coordinates are now offset to be correctly centered in the subImage.