Looking at the sources today i noticed that you are using huffman to compress bitmap data, i did the same on my engine some time back, until discovered UCL http://www.yunqa.de/delphi/doku.php/products/ucl/index maybe you can make good use of it on the engine.