Added stack exchange code snippet example for screen drawing