BUG: Replace ResampleImage with ResampleImageBySpacing
FIX: Add calls to readconfigcase