fixed null pointer bug in EditablePhoto class