formatting PluginDraw code, added in dirty flags to reduce the number of context.strokeStyle and context.fillStyle calls made per frame, disabled calling reset after drawings (be careful of side effects now, call reset() yourself.)