Adding the dimensions to an image