title: PhotoViewAttacher clears imageView bounds and zoom level
body: <p>I'm using <a href="https://github.com/chrisbanes/PhotoView" rel="nofollow">PhotoView</a> library for the implementation of a zooming <code>Android</code> <code>ImageView</code>. The zooming works fine.</p>
  
  <p>I'm setting an image with <code>low-quality</code> in <code>ImageView</code> and then start to download the new image with <code>hight-quality</code> which will replace the <code>low-quality</code> image. </p>
  
  <p>If the user zooms in the <code>low-quality</code> image - the <code>high-quality</code> image replaces the existing image and the zoom level clears :(</p>
  
  <p>How can I save the zoom level after loading the <code>high-quality</code> image?</p>
  
  <p>I've tried to get the image <code>Matrix</code> from <code>PhotoViewAttacher</code> in <code>low-quality</code> and set it to the <code>high-quality image</code>, but it doesn't work - the image zoom level and bounds aren't the same as they were before. The <code>high-quality</code> image replaced the <code>low-quality</code> image in <code>ImageView</code>. </p>
  
  <pre><code>    Matrix matrix;
      imageView.setImageBitmap(imageBitmap);
      ...
  
      PhotoViewAttacher  mAttacher = new PhotoViewAttacher(imageView);
      // save the matrix before any modifications
      matrix = mAttacher.getDisplayMatrix(); 
      mAttacher.setOnMatrixChangeListener(new OnMatrixChangedListener() {
          @Override
          public void onMatrixChanged(RectF rect) {
              // update the matrix
              matrix = mAttacher.getDisplayMatrix(); 
          }
      });
  
      imageProvider.load(getActivity(), imageView, imageUrl, progressBarView, imageConfig, new ImageCallback() {
          @Override
          public void onSuccess(ImageView imageView) {
              // update image in ImageView
              // probably the problem is in this .update() call
              // but I don't get what's the exact problem
              mAttacher.update();
              // restore high-quality image matrix
              mAttacher.setDisplayMatrix(matrix);
          }
  
          @Override
          public void onError(ImageView imageView) {
  
          }
      });
  </code></pre>
  
  <p><strong>Edit:</strong> Images have different dimensions.</p>