Cleanup graphics engine