static HashedBWImage toHashedBWImage(BWImage img) { if (img == null) null; ret new HashedBWImage(img); }