add dimensions to image