bug #1970: Fix image upload in Firefox