use php_imagick_throw_exception when passing a constant