Added function to obtain the native pixelscale from a given image