hmmm....I've got an idea.
try this:
in includes/constants.php uncomment:// define('SCRIPT_URL', 'http://www.yourdomain.com/4images'); //no trailing slash
(obviosly change the url)
then in includes/sessions.php find: return $url;
Insert above: return preg_replace("#^".ROOT_PATH."#", SCRIPT_URL."/", $url);
It should add "full" path to any links created in 4images.
Images will still use the relative path, for that u'll need replace ROOT_PATH with SCRIPT_URL."/" in global.php:define('TEMPLATE_PATH', ROOT_PATH.TEMPLATE_DIR."/".$config['template_dir']);
define('ICON_PATH', ROOT_PATH.TEMPLATE_DIR."/".$config['template_dir']."/icons");
But I can not guaratee it will not break your 4images...