Added lodash and refactored photos controller to use it