Added event handler that wait for the X-out of the window to close
program.
Added applyImage function to apply image on screen location
Apply image on screen locatoin added