mml2015: make key image extraction robuster