Move getHash to ImageData