Also why img_as_ubyte and not img_as_float?