A pixmap is not really like an instance of an image, it's more like a way to access that image. If you take my example and put it into a function, then the pixmap instance is gone when you return but the image is still there!
(I think :P)
(I think :P)