Added forceDuplicate option, to make an image with the same sizes when upscaling is false