keeping track of file hashes when building images