Fix IE issues figuring out the dimensions of the image #50