Encode/decode messages into/from images.