TiffWriter: make checkParams protected so that subclasses can use it