Change the tpl_img() in template.php in order to:
- allow to decide if insert or not the link to the source image
- add the "id" attribute of the image (in order to let a rapid identification by javascripts)
Patch attached.
Patch also includes:
- optimization of image width/height limit
- changes suggested in
FS#1564