If TSA uses the same machines as the Department of State uses at embassies then I can speak from experience that the pictures are stored by default.
Not that this makes me any more OK with subjecting myself (and inflicting upon others) what is essentially a strip search.