Fix #25. Still needs to fix the fact that annotated images are actually deleted (before the detector being trained).