fixed photo update so that validation does not get in the way