adding dimensions to image tag