Do not rely on frame order

Frames are inserted by deriving the slice index using conversion of ImagePositionPatient

Calculate z image size based on slice thickness and z dimension of the bounding box