updated to be compatible to ITK4