code: public static void checkReshape(ImageBase<?> imgA, ImageBase<?> imgB) {
  		if( imgA == imgB )
  			throw new IllegalArgumentException("Image's can't be the same instance");
  		imgB.reshape(imgA.width,imgA.height);
  	}
docs: Throws exception if two images are the same instance. Otherwise reshapes B to match A