remove repaint when layer is not modified