path is now preserved on image warping

up to now, path information is lost whenever an image warp is performed (this is very commonly what we do as a preprocessing step which is particularly painful). This PR ensures that the `.path` property is preserved on both `warp_to_shape` and `warp_to_mask`.