Changes image based on arrow key presses. Window closes when the "x" is pressed.