Remove jQuery dependency and introduce simple image caching.