I'm using the Juicebox plugin for Drupal and I've just finished setting up my first gallery.

However, I'm having an issue with the "width:auto" that is automatically set by the code.

When the viewport height is approximately 400px, the images show up fine. When I expand beyond that, the image starts to stretch, so I see a black shadow on the sides where the image should be in order to have the correct ratio.

This happens on Chrome as well as Firefox.
Somehow the "width:auto" inline style for the <img> tag is not behaving properly, because the height/width for the container are calculated properly. I have the display settings for resizing the image set to "scale" on the CMS side, so I assume this is something caused by the Juicebox processing.

Any ideas on how to fix this issue?