Manipulating a texture's pixels