merge processimage()