Fix avatar upload (for firefox)