edit photo class