Fix image display in safari