Attach image_input_click function to window object

So other parts of the page can access it