Fixed pixel to bit allocations

(this means it actually works now,

I knew there was some testing part I forgot to change)