add w, h to image tag