add float type to the IO method

For reading and writing raster images with float values