TIF: Use the right size for calls to toArray() instead of 0

Change-Id: I645a09403b60545123627df7d0222ed34f084ffe
2 files changed