viewer: Implement image resize and size-based caching