fix ajax photo delete (needed to call it on a form or link)