added TypedPhoto class and PhotoType with own factory and manager