New pixel set and get functions + unit tests.