avoid recreating pixmaps while context is active