Minor improvements

Fixed a bug that would scale the images wrong in IE