update height, width for image tag