implement SetRasterContext