Fix time-optional bug, add photo_save method, refactored.