hacks for Firefox data URI issues