added profilePicture method to service and refactored app.js to use a promise chain