ImThreshold functions changed to T2DIntArr.