I don't have any links since Im not home, but quick search on google will give you about 50 pages with php scripts to upload stuff on your webpage. You could pretty easily use one of those and modify it to write out the nessesary data to the end of a xml file after uploading. Xml picture viewers are abundant, so Im not gonna give you the magic script to solve all your problems but If you got any specific questions I will do my best to answer them