code: public synchronized void succeed (Data data) {
      scale = data.scale;
      pixelWidth = data.pixelWidth;
      assert pixelWidth > 0;
      pixelHeight = data.pixelHeight;
      assert pixelHeight > 0;
      setBitmap(data.bitmap);
      ((RPromise<Image>)state).succeed(this); // state is a deferred promise
    }
docs: Notifies this image that its implementation bitmap is available.
  This can be called from any thread.