add method to save and load image