fixing dynamic twain upload