change directory rights
remove toctou writing image file
move drcs code away from parser/decoder
finalize decoder on reinit
Merge pull request #2 from fcartegnie/master

sync with library update