This should just be `_assert_not_negative(image)` (no `if`-block). Same comment for the functions below.