I tried, but I'm not that good in cgi.
I was thinking about something like this:
Both a fix for http:// or underneath code would be great

#Start User Defined Custom Avatar Hack v1.0
my $user_image = $user_profile[20];
chomp ($user_image);
if ($user_image "") {
$user_image = qq~~;
elsif ($user_image "http://") {
$user_image = qq~~;
} else {
$user_image = qq~

~;
}
#End User Defined Custom Title Hack v1.0