Refactor GraphicsApp class