Reorganized a lot of stuff; current TODO is to write the x/y algorithm for the pixels