Start rewrite of GFX engine (#18, #4)