update photos controller