changed set_pixels to set_pixel, as it only changes one pixel at a time