added pixel_pointer functions for x/y