@Override
    public void onDestroyView() {
        super.onDestroyView();
        if (mAttacher != null) {
            mAttacher.cleanup();
            mAttacher = null;
            mImageView = null;
        }
    }
resize the image or not according to size.

@param size the size of image
boxing-impl/src/main/java/com/bilibili/boxing_impl/ui/BoxingRawImageFragment.java