Better check whether imagelist[key] is set for stacks.