fixes for jpeg hashing