The picture contents are stored in the display server, not in the process memory like an Image.
Even if the underlying toolkit does not completely manage transparency yet, each picture can have a mask. This feature can be set explicitely at picture instanciation, or implicitely when loading an image file that has transparency like PNG.
When drawing on a picture having a mask, the picture and the mask are modified accordingly.