fixing PIXEL_BUFFER_SPAN