BUG: Release images after building the reference data.