Basic drawing and input handling