if ($_[1] ne "OFF") {
# New
$match++ if $_[0] =~ s/(<img src=")(S+)(" alt="" />)/[img]$2[/img]/isg;
# New + alt
$match++ if $_[0] =~ s/(<img src=")(S+)(" alt=" - " />)/[img]$2[/img]/isg;
# old
$match++ if $_[0] =~ s/(<img src=")(S+)(">)/[img]$2[/img]/isg;
[b]$match++ if $_[0] =~ s/(<a href=")(http|https|ftp)(://)(S+)(" target="_fullview"><img src=")(S+)(" width="200" /></a>)/[THUMB]$6[/THUMB]/isg;
}