changed modifier of savePhoto() from private to public