invert key image