Mechanism to load images using AngularJS directive.