Why uint8 if you apply img_as_float anyway?