Refactor bitmap loading/caching to avoid OutOfMemoryException.