Fixed broken image upload for firefox browsers