You can put image width or height to around 100%. Around is because you have parent tag padding and image margin , so 100% would be only if image margin is 0, and padding of it's parent is 0 - otherwise scrollbars appear or part of image becomes cut off depending on many things...
To preserve ratio of image you must set this only to one dimension (chose width or height)
Do this from css or using style attribute.