fixed bug in imagick version of trim command