Moved photo parsing logic out of controller and into a helper class. Adjusted photo display in view accordingly.