Invalidate cached image when layer's data or appearance is modified