lavf/img2enc: add atomic_writing option