determine drawing function in .add() and .set()
Merge pull request #5 from gasperk/master

determine drawing function in .add() and .set()
Fixed reported by @niloy and @eaviles.