mathematical image processing