photo.java: added save & load