Assembly version of put_pixels. This is currently the function that