improved photos controller and methods, with view method