resized images to behave correctly in firefox