NF: function for image params from bounding box

Function takes bounding box, voxel sizes, returns image shape and
affine.