adding width and height dimensions to img