Photo administration controlled by ajax, bug fixing