Accessing the DOM object of the image