added type information to NDImage