Painting optimizations for your LayerUI