added checking of filename collisions of extracted images