optimized layer blitting