After implementing the changes suggested by namklim, image resizing works great in Firefox, but not in IE. Images look distorted, probably due to issues with proportions. My guess is that this was changed in v1.1 in order to make images look OK in IE.
Is there a way to fix this issue for both FF and IE?