Image size validation

How do I validate the rendered size of an image? I am using Get CSS using Height and Width as property but this changes as the browser size changes. In a sense, I want to ensure that an image is rendered at a certain size regardless the size of the browser/window