Simplify image data/hash code