improved performance of Image::toImageU8