Since all of these examples produce floating point output, I think the correct thing to do is to return a rescaled image of dtype float with values between 0 and 1.