Attach image_input_click function to window object

So other parts of the page can access it. The puppy-kitty problem breaks without this.