Changes discussed in https://github.com/JohannesBuchner/imagehash/issues/5