Preloading Images In AngularJS With Promises