fixed photo persisting after logout