have the input box, appended to img div, but bad stuff happens after second click