avoid memory allocations during draw
fix memory leaks
reuse same bitmap instances when preview