added some functions to Picture for serialization. serialization not yet
implemented