Debugging and housekeeping

Now have end to end image encoding, decoding and recovery working so you can simulate the generation and decoding of RGB images with various levels of simulated noise.