Generate photos controller