Use a base image identifier for creating a cache id

Instead of using a base image name