buffer filling in buffer__set_pixels fixed