workaround: convert `dtype(image)` to `image.astype(dtype)`
Merge pull request #477 from JDWarner/convert_dtype_to_astype

Use `image.astype(dtype)` instead of `dtype(image)`