Changed write(TIFFImage) due to TIFFImage changes