function blur($type = 'selective', $passes = 1)
{
switch (strtolower($type)) {
case 'gaussian':
$type = IMG_FILTER_GAUSSIAN_BLUR;
break;
default:
$type = IMG_FILTER_SELECTIVE_BLUR;
break;
}
for ($i = 0; $i < $passes; $i++) {
imagefilter($this->image, $type);
}
return $this;
}