Fix a case where the captured photo could remain on the SD card