Added graphics update function and basic frame rendering.