Implemented specialized toRaster for Android