code: function clBackgroundImage(Cloudinary) {
          return {
              restrict: 'A',
              scope: {},
              priority: 99,
              link: function (scope, element, attrs) {
                  var deregisterObserver = attrs.$observe('clBackgroundImage', function (publicId) {
                      if (!publicId)
                          return;
                      var attributes = getAttributes(attrs);
                      var url = Cloudinary.url(publicId, attributes);
                      angular.element(element)[0].style['background-image'] = "url('" + url + "')";
                      angular.element(element)[0].style['background-color'] = 'transparent';
                      angular.element(element)[0].style['background-repeat'] = 'no-repeat';
                      angular.element(element)[0].style['background-position'] = 'center';
                      angular.element(element)[0].style['background-size'] = 'cover';
                      //deregisterObserver();
                  });
              }
          };
      }
docs: /* @ngInject