File storage is now atomic when moving the new image, crypto and detector data files to their final destination. Fix #193.