Image hash code generator