Call LoadFromStream to create a new image from the layers contained by AStream. If the current image is not empty, it is first emptied.
AStream mus contain a valid ImagePainter document format.
This is how to copy the content of one ImagePainter to another:
MyStream : TMemoryStream;
MyStream := TMemoryStream.Create;