Expose Image as HTMLImageElement and Canvas as HTMLCanvasElement to "window" object as browsers do