WordPress – make all images inside a post links

Recently, I have had this request from a friend of mine, who had trouble with adding images into their post. In the following code, you will find “thickbox no_icon”, which is added for the plugin “auto-thickbox” used in that site. Enjoy!