fix bug can't display image in sfari