--- imageapi.module 2010-02-18 13:42:00.000000000 -0500 +++ imageapi.module.new 2010-02-18 13:37:27.000000000 -0500 @@ -162,6 +162,7 @@ function imageapi_toolkit_invoke($method $function = $image->toolkit . '_image_' . $method; if (function_exists($function)) { array_unshift($params, $image); + $params[0] = &$image; return call_user_func_array($function, $params); } watchdog('imageapi', 'The selected image handling toolkit %toolkit can not correctly process %function.', array('%toolkit' => $image->toolkit, '%function' => $function), WATCHDOG_ERROR);