add close tag to image