BF: get image slope using raw header

I was using the header slope to calculate expected error.  The current
version of nibabel doesn't return the read slope from `get_slope_inter`
as I was assuming here.  Directly read the written header to get the
slope.
RF: remove yields from test_mask

The test generator makes it more difficult to debug; remove.