Fixed a bug with the drawLayer() method (#108) and the plugin API (#109)