Fixed bug in links to images in some templates.
Fix small bug in BBCode template.