Special effects method that randomly displaces each pixel in a block defined by the radius parameter.
function spreadImage($image_path, $radius)
{
    $imagick = new \Imagick(realpath($image_path));
    $imagick->spreadImage($radius);
    header("Content-Type: image/jpg");
    echo $imagick->getImageBlob();
}