Faster screen redraws by using NumPy for image_to_data conversion

Using NumPy in the image_to_data function speeds up screen redraws by 80%.