Encode text message into the image file.