make publicId in ng-image dynamic. issue #1