Use `force_copy` argument of `img_as_float`

Also three PEP8 fixes