code: function () {
          if (this.image.px) {
              return isPowerOfTwo$1(this.image.px.width)
                  && isPowerOfTwo$1(this.image.px.height);
          }
          else {
              return isPowerOfTwo$1(this.width)
                  && isPowerOfTwo$1(this.height);
          }
      }
docs: Overwrite the isPowerOfTwo method