updated and finished photo class