private void reloadImage(Uri imageUri, @Nullable ResizeOptions resizeOptions) {
    VitoView.show(
        imageUri,
        ImageOptions.create()
            .resize(resizeOptions)
            .overlayRes(R.drawable.resize_outline)
            .scale(ScalingUtils.ScaleType.CENTER_CROP)
            .errorRes(R.color.primaryDark)
            .build(),
        CALLER_CONTEXT,
        mImage);
  }
Fragment that illustrates how to use the image pipeline directly in order to create
notifications.
samples/showcase/src/main/java/com/facebook/fresco/samples/showcase/imagepipeline/ImagePipelineResizingFragment.java