If you want an image to scale down if it has to, but never scale up to be larger than its original size, use max-width: 100%.
Resize the browser window to see the effect.