in reply to Escaping \U

If you don't want a \U there, don't put it there?

print "Something$variable\\Unselected.gif";

Or maybe you don't want the backslash there?

print "Something{$variable}Unselected.gif";

I'm unclear on what your goal is...