Use relative paths for image path hashing

Use relative paths for hashing source image paths. This produces consistent hashes even in setups with multiple developers, building from a checkout in a tmp directory, etc.