add support for 32-bit int output in writeTIFF()