Index: imageapi.module =================================================================== --- imageapi.module (revision 53) +++ imageapi.module (working copy) @@ -161,7 +161,7 @@ function imageapi_toolkit_invoke($method, &$image, array $params = array()) { $function = $image->toolkit . '_image_' . $method; if (function_exists($function)) { - array_unshift($params, $image); + array_unshift($params, &$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);