use netpbm tools to do deskew and deshadow.