Added stuff to templated rectangle class. Slowly fleshing out pixel format for surfaces.