corrected image patching