IE Fix: resize images keeping aspect ratio. Code stolen from somewhere, need to refactoring and optimizing... but it works ;)