use netpbm to help doing deskew and deshadow.