solve tough digital image processing with C