Cache reference images.