change the image end tag