Improve update pull request query

commitIdFrom and commitIdTo columns update by one query.
Add link for image file

* Render image tag with link tag on issue and wiki
* Correct response content-type of attached image on issue