Arithmetic processing of image data