Added progamm-stuff to decode an before-encoded image.