Updated width and height of img