Prepare to rewrite the resize-method with respect to no-upscale code.