add dimensions to images