Prefer mirage over feh.
Set the EDITOR variable to emacsclient. Pass the environment variable to sudo.