IANAPC (I am not a PHP coder), but is there any reason you can’t add this to the code (as a separate function):
if( !function_exists( 'image_title' ) ) {
function image_title() {
global $imageheadings_is_title;
$imageheadings_is_title = TRUE;
the_title();
$imageheadings_is_title = FALSE;
}
}
If you combine that with mixvio’s global variable modification, you should just be able to replace all instances of the_title(‘image’) with image_title(). (Works for me.)