--- sites/all/modules/imageapi/imageapi.module	2010-04-26 13:52:13.000000000 -0700
+++ sites/all/modules/imageapi/imageapi.module.new	2010-04-26 13:49:40.000000000 -0700
@@ -161,7 +161,7 @@ function imageapi_default_toolkit() {
 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);
