fix css for Safari and fix mini view image style