the way everyone else does it include ebay, youtube, and the big names. Iframes becuase ajax cant do files. have you form input then target a iframe.
1 iframe per image
And for the multipal rows thing just run the INSERT command twice ?
ergo 2 rows or put it into a array
and in php run foreach command