Partial rewrite of Graphics and Tilesheet.

P.S.: Commit #100!
Hotfix for Haxe 3.1 glitch

For trigger case , see
https://gist.github.com/YellowAfterlife/0da035fe3a0a0acbc7d5