changes to allow expressions of image stacks.