How did you setup the subdomain, via apachi's virtual host, or via .htaccess?
I don't see any changes in v1.7.8 that would possibly cause this, perhaps it's the way you've setup the subdomain that is not correct?
4images redirects to whatever is in getenv("HTTP_REFERER")