Updated the photos controller