fixed issue with ng-url on img; refactoring