Keep track of images instead of pixmaps