Make dimensionChange work with subimages