Support saving and loading of images