Fix mode=Lineart support

Signed-off-by: Jerome Flesch <jflesch@gmail.com>