change select key image function signature