Clip non-uint8 numpy data before converting to PIL