First attempt at encoder

It seems to work for some images, but not others.
That is, when decoding, the raster field is
changed in a way that makes extracting the message
more difficult...it is strange.