Imagine: fix detection of temporal dimension