Simulates a charcoal drawing.
function charcoalImage($image_path, $radius, $sigma)
{
    $imagick = new \Imagick(realpath($image_path));
    $imagick->charcoalImage($radius, $sigma);
    header("Content-Type: image/jpg");
    echo $imagick->getImageBlob();
}