canvas is getting cleared before rasters are drawn