Add image rendering and key press event parsing