Automatically infer image name if overlay exists