editImage.js only for autenticated users

This script replace addRemoveWidget with radio buttons. It isn't useful
for anonymous users.
see previous commit