Directly decompress image into ram. A little bit clean up up of the bzip2 code