Implementing the serializer.
Changed Image to BufferedImage.
Some other minor changes.
Added Apache commons-codec-1.9 for image encoding/decoding.