@Override
 public void didEndDownload(String url, byte[] data, long elapsedTime) {
   PLIImage image = new PLImage(PLUtils.getBitmap(data, mColorFormat), false);
   if (mPanorama instanceof PLCubicPanorama)
     ((PLCubicPanorama) mPanorama).setImage(image, mIndex);
   else if (mPanorama instanceof PLIQuadricPanorama)
     ((PLIQuadricPanorama) mPanorama).setImage(image);
 }
 @Override
 public void didEndDownload(String url, byte[] data, long elapsedTime) {
   mImage.assign(PLUtils.getBitmap(data, mColorFormat), false);
 }
 protected PLIImage getLocalImage(String url, PLTextureColorFormat colorFormat) {
   Bitmap bitmap =
       PLUtils.getBitmap(mView.getActivity().getApplicationContext(), url, colorFormat);
   return (bitmap != null ? new PLImage(bitmap, false) : null);
 }