Fixes #50.
Added draw handling and fixed engine for that purpose. Closes #49.