Added userpic upload function.