Added saving to Image class.