update gallery photos controller