Digital image processing based on the residue number system