merged CompareImages