Giving away secrets....
Step 1: .htaccess:
RewriteEngine On
RewriteCond %{HTTP_REFERER} ^
http://images.google
RewriteCond %{REQUEST_URI} !googleimages.php
RewriteCond %{REQUEST_URI} (.*)
RewriteRule /* /googleimages.php?url=%1 [R,L]
Step 2: googleimages.php
<html><head><title>Loading Site...</title>
<script language="Javascript">
<!--
if (top.location != location) top.location.href = 'http://<? print $_SERVER["SERVER_NAME"] . $url;?>';
//-->
</script>
</head>
<body><center><a target=_top href="http://<? print $_SERVER["SERVER_NAME"] . $url; ?>">Click Here To Load The Site</a></center>
</body></html>
----
Now you can bust out of the google frame on every page on your domain without having to modify any of them (all your galleries etc).