bitmap smoothing option (see issue #19) and little cleanup