Allow a target image to be passed to ``to_wcs`` to scale the WCS