so i have a pic editing website set up, and i have a function which lets you download images. http://jsfiddle.net/9Ytsk/ is what it looks like. what i want it to do is also generate the image to a different directory (gallery/gallery), and add +=1 if the image already exists (ex. image.png exists so it's named image1.png). Thanks!