Fixing the scanning of unused images