trying to improve image pre-loading and caching.