finished picture upload function