Adding dimensions to the image.