create photo object class