added paintDab function in brush engine