Moving page encoding to compress fn
Removed extra printks in render_hline
Compress + encoding function completed. Not tested.
Compress and encode integrated. Not tested.