fix bug in firefox upload image