How to get all pixcel values from a raster image