Index: image.module =================================================================== --- image.module (revision 6215) +++ image.module (working copy) @@ -976,7 +976,7 @@ // The token query is added even if the 'image_allow_insecure_derivatives' // variable is TRUE, so that the emitted links remain valid if it is changed // back to the default FALSE. - $token_query = array(IMAGE_DERIVATIVE_TOKEN => image_style_path_token($style_name, $path)); + $token_query = array(IMAGE_DERIVATIVE_TOKEN => image_style_path_token($style_name, $uri)); // If not using clean URLs, the image derivative callback is only available // with the query string. If the file does not exist, use url() to ensure