optimize raster rendering when not resizing