It would work ... but the image must be attached to the DOM otherwise it will (of course) not be visible and not be clickable.
Code:
object.prototype.clickme = function() {
alert('Hooray!');
};
object.prototype.setImage = function(src) {
this.picture = new Image();
this.picture.src = src;
document.body.appendChild(this.picture);
this.picture.addEventListener('click' , this.clickme, false);
};