Implementing parallel arithmetic via acetylation and its application to chemical image processing