Improved quality of rendering

This small change dramatically increases rendering quality, but you have to pay a fee in form of speed degradation