Stopped passing of NaNs to scipy's affine_transform