initial draft of graphics engine