aqui no seria mejor hacerle un `encodeUriComponent` a `$scope.img`?
http://stackoverflow.com/questions/75980/best-practice-escape-or-encodeuri-encodeuricomponent