Replacing image filename with image hashes