fixing photo formatting