Performance optimizations - precalcing pixmaps