add gamma correction for pdf/djvu reader