A reusable image loader directive for AngularJS projects