Basic pixel compression (further work here)