AngularJS directive for resizing avatar