Refactored photos controller, comment controller and show jbuilder templates