Add forceDuplicate option to force a duplicate of the original image when upscale is false