added antialising and smoothing