Added Photo class, fixed bitmap serialization