Messing with images after the page loads with Javascript can be the most strait forward way of doing things, although it does lead to the end user needing the js to be on. Can reduce server loading times but also can make images slightly less crisp in my experience.
Still…Javascript image manipulation
<lateR> theres also this