fix bogus image layout in firefox