It's hard to say what exactly is causing this behavior, or should I say, give you an accurate answer to your problem, without seeing a live link. But it's most likely to be a CSS related thing. Because we can see in the print that the image size is properly set to 40.