@Override
  public void setImageDrawable(final Drawable drawable) {
    if (drawable == null) { // AQuery preset drawable to be null if not found in cache
      return;
    }
    if (drawable == Drawables.sPlaceholderDrawable) {
      // ignore
    } else if (drawable == Drawables.sErrorDrawable) {
      mInstrumentation.onFailure();
    } else {
      mInstrumentation.onSuccess();
    }
    super.setImageDrawable(drawable);
  }
{@link ImageView} that notifies its instance of {@link Instrumentation} whenever an image request
lifecycle event happens.

<p>setImageResource and setImageURI methods are not expected to be used by any library,
UnsupportedOperationException is thrown if those are called
samples/comparison/src/main/java/com/facebook/samples/comparison/instrumentation/InstrumentedImageView.java