avoid transparency of legend images: #331