handle temporary pixmaps better