removed hack, which really seriously broke wcs, and instead use a more
sensible replacement of the pixel_scale function