created photos controller