protected function processImage($action, InterventionImage $image)
    {
        $action = explode('_', $action);

        if (count($action) > 1)
        {
            list($method, $param) = $action;
        } else
        {
            $method = current($action);
            $param = [];
        }

        if ($method === 'crop')
        {
            $params = explode(',', $param);

            call_user_func_array([$image, 'crop'], $params);
        } else
        {
            call_user_func([$image, $method], $param);
        }

        return $this->saveImage($image);
    }