--- imageapi.module	2010-04-30 14:48:38.000000000 -0700
+++ imageapi.new.module	2010-09-27 09:43:19.043397400 -0700
@@ -397,11 +397,11 @@ function imageapi_image_open($file, $too
  * @return
  *   TRUE or FALSE, based on success.
  */
-function imageapi_image_close($image, $destination = NULL) {
+function imageapi_image_close($image, $destination = NULL, $quality = NULL) {
   if (empty($destination)) {
     $destination = $image->source;
   }
-  if ($return = imageapi_toolkit_invoke('close', $image, array($destination))) {
+  if ($return = imageapi_toolkit_invoke('close', $image, array($destination, $quality))) {
     // Clear the cached file size and refresh the image information.
     clearstatcache();
     $image->info = image_get_info($destination);
