hoist all the copies of cmpimg into a common module