fix trailing index on root images