add width and height to image