scripts to encode/decode files into images