I think, it's better to use the `force_copy` argument of `img_as_float`, so we avoid doubled memory allocation in case of non-double input.