declare tiff callbacks inline