added more shape rendering features, closes #42