Make it possible to set the x and y resolution of images when writing them. This is currently only supported for file formats where Sanselan already writes the resolution, ie. BMP and TIFF.