Should be pretty easy to implement based on existing methods with two passes. - Pass 1: get all images, LRU times, and sizes. - Determine which images need to be trimmed to reach limit in LRU order - Pass 2: flush images from above step