Implemented working toRaster for PC