Application of background color removal and gray balance in book printers