input pair image