Smooth image loading with a bit of JS.