add dimensions to image nodes