Added modes to ResampleNodeFactory