fix: remove close tag of head
fix: support auto format image