set painted = true when a raster is added as a layer