lame work-around for saving image on firefox