Possible bug in Lightbox (and fix)

I’m currently working on some Rails project which makes use of the great attachment_fu plugin by Technoweenie (which led to my first bugfix for an Open Source project).

Yesterday I stumbled over some glitch with Lightbox (or Script.aculo.us, I’m not really sure) which results in a mal-sized picture. For the sample, go here. The fix is quite simple, you have to explicitly set the width of the image (that should be around line #260):

imgPreloader.onload = (function(){
    this.lightboxImage.src = this.imageArray[this.activeImage][0];
    // The following line will fix the glitch:
    this.lightboxImage.width = imgPreloader.width;
    this.resizeImageContainer(imgPreloader.width, imgPreloader.height);
}).bind(this);
imgPreloader.src = this.imageArray[this.activeImage][0];